<!DOCTYPE HTML>
<html lang="zh-cn">
<head>
<base href="http://test.youxiduo.com/iweb/shi_xin_bu_chang/"/>
<!--<base href="http://h5.youxiduo.com/special/shihou/promoter/3067/"/>-->
<!--<base href="http://resource.youxiduo.com/special/shihou/promoter/3067/"/>-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name = "format-detection" content = "telephone=no">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport"  content="width=device-width,user-scalable=no">
<title>狮吼主播2017全新启航直播时薪翻倍</title>
<meta name="keywords" content="游戏多">
<meta name="description" content="游戏多">
<link rel="stylesheet" href="static/css/base.css" />
<link rel="stylesheet" href="static/css/style.css" />
<script src="static/js/base.js"></script>
<script src="static/js/jquery-1.7.1.min.js"></script>

<script language="JavaScript">
$(function()
{	
	var time = 3;
	$(".share").click(function()
	{
		if(from_user_id=="0")
		{
			$("#unLogin").fadeIn(200);
			setTimeout('$("#unLogin").hide()', time*1000);
		}
		else
		{
			var web_share = {
				"qq": {
					"url": share_url,
					"img": share_icon,
					"title": share_title,
					"subtitle": share_desc
				},
				"wx_person": {
					"url": share_url,
					"img": share_icon,
					"title": share_title,
					"subtitle": share_desc
				},
				"wx_group": {
					"url": share_url,
					"img": share_icon,
					"title": share_title,
					"subtitle": share_desc
				},
				"wb": {
					"url": share_url,
					"img": share_icon,
					"title": share_title,
					"subtitle": share_desc
				}
			};
		
			if (typeof(window.lion) != "undefined" && typeof(window.lion.web_share) == 'function')
			{
				window.lion.web_share(JSON.stringify(web_share));
			}	
		}
	});
	
	//展开隐藏
	$(".box").each(function()
	{
		var btnShow = $(this).find(".btnShow");
		var btnHide = $(this).find(".btnHide");
		var rule    = $(this).find(".rule");
		btnShow.bind("click",function()
		{
			rule.slideDown();
			btnShow.css('display','none');
			btnHide.css('display','block');
		});
		btnHide.bind("click",function()
		{
			rule.slideUp();
			btnHide.css('display','none');
			btnShow.css('display','block');
		});
	});
	
});
</script>
</head>
<body>
    
	<div class="wrap"> 
    	<header class="header">
        	<img src="static/img/top1.jpg" />
            <div class="userInfo" style="display: none1;">
            	<!--<span class="userHead"><img src="static/img/shHead.jpg" /></span>
                <span class="userName">小狮子小狮子小狮子</span>
                <span class="userTime">时长：<i>10小时</i></span>
                <span class="userMoney">工资：<i>50元</i></span>
                <a class="btnBm" title="立即报名"></a>
            	<a class="btnCenter" href="#" title="个人中心"></a>-->
            </div>
            <a class="share shareT"><img src="static/img/share.png" /></a>
            <div class="noLogin" style="display:none;"><img src="static/img/noLogin.png" /></div>
        </header>
        <section>
            
            <!-- 每日排名奖励 -->
            <div class="boxW">
            	<h3 class="title1"><img src="static/img/title1.png" /></h3>
                <div class="box">
                    <ul class="list">
                    	<!--<li><span><em>第1名</em></span><span>100元/小时</span></li>
                        <li><span><em>第2名</em></span><span>60元/小时</span></li>
                        <li><span><em>第3名</em></span><span>40元/小时</span></li>
                        <li><span><em>第4-10名</em></span><span>30元/小时</span></li>
                        <li><span><em>第11-50名</em></span><span>10元/小时</span></li>
                        <li><span><em>第50-100名</em></span><span>5元/小时</span></li>
                        <li><span><em>第101-500名</em></span><span>3元/小时</span></li>
                        <li><span><em>第501-2000名</em></span><span>2元/小时</span></li>
                        <li><span><em>第2001-5000名</em></span><span>1元/小时</span></li>-->
                    </ul>
                    <div class="rule">
                        <dl>
                            <dt>活动说明：</dt>
                            <dd><em>1.</em>每日排名会依据主播当日直播的时长、人气、收益、弹幕数等综合因素排行；</dd>
                            <dd><em>2.</em>排名奖励榜单次日中午12：00公布，主播可点击【昨日排名】按钮查看自己排名；</dd>
                            <dd><em>3.</em>排名榜单公布后，前5000名的主播可根据名次每日领取对应奖励，奖励以等额狮牙累计至"个人收益"明细中，可直接提现；</dd>
                            <dd><em>4.</em>参与对象：全平台用户（签约、公会主播除外），已签约主播暂不参与排行奖励；</dd>
                        </dl>
                    </div>
                    <a class="btnShow btn">活动规则<em></em></a>
                    <a class="btnHide btn">收起<em></em></a>
                </div>
                <span class="infoTs">温馨提示：排行奖励次日结算</span>
                <a href="javascript:void(0)" class="btnPm" id="btnPm1" style="display: none;"><img src="static/img/btnPm.png" /></a>
                <a href="javascript:void(0)" class="btnPm" id="btnPm2" style="display: none;"><img src="static/img/btnPm2.png" /></a>
            </div>
            
            
            <!-- 如何成为认证主播 -->
            <div class="boxW">
            	<h3 class="title2"><img src="static/img/title3.png" /></h3>
                <div class="box">
                    <div class="text tFirst">
                    	直播数据表现突出的主播可申请认证，有机会获得狮吼平台签约，可获得更高的签约底薪奖励！<br>
                        <span class="yellow">王者主播认证</span></br>王者荣耀最强王者段位或其他游戏最高段位的小伙伴均可以报名；</br>
                        <span class="yellow">枪神主播认证</span></br>“穿越火线枪战王者”枪王段位，在大型赛事中获得过比赛名次的小伙伴均可以报名；</br>
                        <span class="yellow">游戏达人认证</span></br>“非王者荣耀高端”玩家，大区、国服、世界排名靠前，在该游戏内有一定知名度、影响力的玩家和视频作者等均可报名；</br>
                        <span class="yellow">美女主播认证</span></br>需电脑直播并开启摄像头露脸，详情咨询客服；</br>
                        <span class="yellow">大神主播认证（签约）</span></br>荣耀王者段位、国服第一称号、有过相关比赛名次选手均可报名；</br>
                        <span class="yellow">认证方式：联系狮吼官方客服小狮妹QQ:3367063843</span>
                    </div>
                    <div class="rule">
                        <dl>
                            <dt>成长奖励：</dt>
                            <dd><em>1.</em>直播一周后，人气、礼物、弹幕数总和数据优秀的主播可以获得狮吼官方认证的“王者”、“枪神”“游戏达人”“美女”、“大神”等标签，凡是通过认证，将获得热门推荐位置，更有机会获取签约资格，进行包装、宣传、推广机会；</dd>
                            <dd><em>2.</em>活动期间直播表现突出的主播可获得狮吼直播首页推荐；</dd>
                       </dl>
                    </div>
                    <a class="btnShow btn">活动规则<em></em></a>
                    <a class="btnHide btn">收起<em></em></a>
                </div>
            </div>
            
            <!-- 推荐有礼 -->
            <div class="boxW">
            	<h3 class="title3"><img src="static/img/title4.png" /></h3>
                <div class="box">
                   <div class="text tFirst">
                    	每推荐1名好友开播，即可获得40狮牙；</br>
                        好友活动期间内累计直播时长到达50小时，推荐人可额外获得400狮牙（活动结束后统一发放）；</br>
                        这么好玩又好赚的活动，赶紧分享给小伙伴一起来参加吧<br>
                    </div>
                    <div class="rule">
                        <dl>
                            <dt>推荐规则：</dt>
                            <dd><em>1.</em>推荐好友首次开播满10分钟，即可获得40狮牙，奖励上不封顶，推荐越多，奖励越多；</dd>
                            <dd><em>2.</em>推荐奖励直接发送至账户中，可在任意直播间送礼使用；</dd>
                        </dl>
                        
                    </div>
                    <a class="btnShow btn">活动规则<em></em></a>
                    <a class="btnHide btn">收起<em></em></a>
                </div>
            </div>
        </section>
        <footer>本活动最终解释权归狮吼直播平台所有</footer>
    </div>
    
    <!-- 登录 -->
	<div class="pop" id="unLogin">请登录后再来参加活动吧~</div>
	<div class="pop" id="baoMSuccess">报名成功</div>
	<div class="pop" id="baoMFaild">报名失败</div>
    
</body>
</html>
<script>
	var share_icon="http://resource.youxiduo.com/special/shihou/promoter/46/static/img/wzry.png";
	var share_title="王者荣耀玩家专属福利";
	var share_desc="立领200元现金！分享再送30元，还不快来！";
	var plan_Id="4PLwi6yLVak6";
	var share_conf_id="41";
	var signed="0";
	var share_open="1";
	var from_user_id="244269";//244269
	var share_url="http://m.shihou.tv/event_share/41?type=1&page=1&from_user_id=244272&share_config_id=41";
	
</script>
<script>
	var base;
	var listURl;
	var userCenterURL;
	$(function(){
		base = new Base();
		listURl = base.listURl + setParamter();
		userCenterURL = base.taskUserCenterURL + "?uid="+from_user_id+"&plantId="+plan_Id+"&activityId="+share_conf_id;
		if(base.GetDateStr(0) == base.dateTime){//按钮变灰，且不能点击
			$('#btnPm2').show();
			$('#btnPm1').hide();
		}else{//按钮可以点击
			$('#btnPm1').show();
			$('#btnPm2').hide();
			$('.btnPm').attr("href", listURl);
		}
		
		//加载排名配置信息
		var date = {"activityId":share_conf_id};
		base.requestRemoteDataJson(base.extraWageConfig, date, function(result){
			if(base.parseResult(result, 'errorCode') == 0){
				result = base.parseResult(result, 'result');
			}
			var arr = result.split(",");
			var html = '';
			for (var i = 0;i < arr.length;i++) {
				var key = arr[i].split(":")[0];
				if(key.split("-")[0] == key.split("-")[1]){
					key = key.split("-")[0];
				}
				var value = arr[i].split(":")[1];
				html += '<li><span><em>第'+key+'名</em></span><span>'+(parseInt(value)/20)+'元/小时</span></li>';
			}
			$(".list").html(html);
		});
		
		//用户没有登录
		if(from_user_id=="0"){
			console.log('用户没有登录');
			$('.noLogin').show();//显示登录后再参与活动
		}else{//用户已经登录
			console.log('用户已经登录');
			var date = {"activityId":share_conf_id, "userId":from_user_id, "planId":plan_Id};
			base.requestRemoteDataJson(base.userCenterURL, date, function(result){
				base.logResult(result);
				var html = '';
			    if(result.errorCode == "0"){
			    	result = result.result;
			    	html += '<span class="userHead"><img src="'+base.parseResult(result, 'userInfo', 'avatar')+'" /></span>';
			        html += '<span class="userName">'+base.parseResult(result, 'userInfo', 'nick_name')+'</span>';
					html += '<span class="userTime">时长：<i>'+base.parseResult(result, 'validTimeStr')+'</i></span>';
			        html += '<span class="userMoney">工资：<i>'+parseInt(result.totalWage)/20+'元</i></span>';
			        if(signed == 0){
			        	//返回值false表示不是要过滤的用户， 返回true表示要过滤的用户
			        	base.requestRemoteDataJson(base.filterUserURL, {"userId":from_user_id}, function(data){
							base.logResult(data);
							if(data.errorCode == 0){
								if(data.result != undefined){
									var result = data.result;
									if(!result){ //如果不是过滤用户
										html += '<a class="btnBm" title="立即报名"></a>';	
									}
								}
							}
						});
			        }else{
			        	html += '<a class="btnCenter" href="'+userCenterURL+'" title="个人中心"></a>';	
			        }
			    }
			    $('.userInfo').html(html).show();
			});
		}
		
		//点击报名按钮
		$('.btnBm').live("click", function(){
			listURl += setParamter();
			requestRemoteDataJSONP(base.baomingURL, {'from_user_id':from_user_id,"share_conf_id":share_conf_id}, function(data){
				if(0==data.errorCode){//报名成功
					console.log("报名成功");
					$("#baoMSuccess").fadeIn(200);
					setTimeout('$("#baoMSuccess").hide()', 1000);
					setTimeout(function(){
						$('.userInfo').find("a").removeClass("btnBm").addClass("btnCenter").attr("title", "个人中心");
						$('.userInfo').find("a").attr("href", userCenterURL);
						//window.location.reload;	
					}, 1300);
					 
				}else{//报名失败
					console.log("报名失败");
					$("#baoMFaild").fadeIn(200);
					setTimeout('$("#baoMFaild").hide()', 2000);
				}
			})
		});
		
	});
	
	
	function requestRemoteDataJSONP(url, data, callback){
		base.logURL(url);
		base.logParameter(data);
		$.ajax({
			url: url,
			type: 'GET',
			async: false,
			dataType: "jsonp",
			jsonp: "callback", //服务端用于接收callback调用的function名的参数(请使用callback或jsonp)
			jsonpCallback: "success_jsonpCallback", //callback的function名称
			data: data,
			success: callback
		});	
	}
	function success_jsonpCallback(){
	}
	
	function setParamter(){
		var urlParameter = '?plan_Id='+plan_Id+'&share_conf_id='+share_conf_id+'&signed='+signed+'&from_user_id='+from_user_id+'&share_url='+share_url+'&share_open='+share_open;
		urlParameter += '&share_icon='+share_icon+'&share_title='+share_title+'&share_desc='+share_desc;
		return urlParameter;
	}
	
</script>